<template>
  <router-view></router-view>
</template>

<script>
    import IdentifierUserUrl from '../../../../../components/identifier/web/pc/IdentifierUserUrl.js'

    export default {
        name: 'App',
        components: {
        },
        computed:{
        },
        created(){
            this.axios.get(IdentifierUserUrl.hasLogin).catch(error=>{
                if (error.response) {
                    if (error.response.status == 401) {
                        this.$router.replace('/login').catch(()=>{})
                    }else {
                      this.$message.error("网络错误，请检查是否网络正常或后台服务是否已启动")
                      this.$router.replace('/login').catch(()=>{})
                    }
                }
            })

        },
        data() {
            return {
            }
        },
        mounted(){
        },
        methods:{
        },
        watch:{

        }
    }
</script>

<style>

</style>
